package com.ashapo.pattern.pattern030interceptingfiter;

//第7步
//使用客户端来演示拦截过滤器设计模式。

public class InterceptingFilterDemo {

    /**
     * 拦截过滤器模式
     * @param args
     */
    public static void main(String[] args) {
        FilterManager filterManager = new FilterManager(new Target());
        filterManager.setFilter(new AuthenticationFilter());
        filterManager.setFilter(new DebugFilter());

        Client client = new Client();
        client.setFilterManager(filterManager);
        client.sendRequest("HOME");
    }
}
